﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class playa : MonoBehaviour
{
    private AudioSource ar;

    // Start is called before the first frame update
    void Start()
    {
        ar = GetComponent<AudioSource>();
        ar.clip = Resources.Load<AudioClip>("test");
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
            ar.Play();
        if (Input.GetMouseButtonDown(1))
            ar.Pause();
    }
}
